package com.yangle.frame;


import com.yangle.frame.admin.listener.TaskRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.core.convert.converter.Converter;

import java.text.SimpleDateFormat;
import java.util.Date;


@SpringBootApplication
// 启用缓存注解
@EnableCaching
public class SuperadminApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(SuperadminApplication.class, args);
	}
    @Bean
    public TaskRunner taskRunner(){
        return new TaskRunner();
    }

}
